﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="myStackSandbox._Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">
    </style>
    <link href="css/style1.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <div id="inputDiv">
            Title:
            <asp:TextBox ID="TitleTextBox" runat="server"></asp:TextBox>
            <br />
            Content:
            <br />
            <asp:TextBox ID="ContentTextBox" runat="server" Height="80px" 
                TextMode="MultiLine" ></asp:TextBox>
            <br />
            <asp:Button ID="PushButton" runat="server" Text="Push!" 
                onclick="PushButton_Click" class="button"/>
        </div>
        <div id="displayDiv">
            <asp:Button ID="DisplayStackButton" runat="server" Text="Display Stack" 
                onclick="DisplayStackButton_Click" class="button"/>
            <br />
            <asp:ListBox ID="StackListBox" runat="server" 
                onselectedindexchanged="StackListBox_SelectedIndexChanged"
                DataTextField="entry_title"
                DataValueField="entry_id"
                AutoPostBack="true"
                >
                
                </asp:ListBox>
            <br />
            <asp:Label ID="SelectedStackItemContentLabel" runat="server" Text="Label"></asp:Label>
            <br />
            <div>
                <asp:Repeater ID="Repeater1" runat="server" >
                    <HeaderTemplate>                
                    </HeaderTemplate>
                    <ItemTemplate>
                        <asp:TextBox ID="myStack_tb1" runat="server" Text='<%# Eval("Title") %>'></asp:TextBox>
                        <asp:TextBox ID="myStack_tb2" runat="server" Text='<%# Eval("Author") %>'></asp:TextBox>
                        <br />
                    </ItemTemplate>
                    <FooterTemplate>
                    </FooterTemplate>              
                </asp:Repeater>
            </div>
        </div>
    </div>
    <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Button" class="button"/>
    </form>
</body>
</html>
